package com.example.springbootmybatis0912.controller;

import com.example.springbootmybatis0912.mapper.CardMapper;
import com.example.springbootmybatis0912.service.CardService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class MybatisController {

    @Autowired
    private CardService service;

    @RequestMapping("/get")
    public String queryNumber(){
//        System.out.println(id);
        return service.selCard(1);
    }
}
